<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div id="identity">
        {if $row.customer_identity==0}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
            <div class="col-xs-12 col-sm-8">
                <input value="{$row.full_name|htmlentities}" id="c-full_name"
                       placeholder="{:__('Please enter')}客户姓名" data-rule="required"
                       class="form-control" name="row[full_name]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">身份证号:</label>
            <div class="col-xs-12 col-sm-8">
                <input value="{$row.idnumber|htmlentities}" id="c-idnumber" placeholder="{:__('Please enter')}身份证号"
                       data-rule="required"
                       class="form-control" name="row[idnumber]" type="text">
            </div>
        </div>
        {/if}

        {if $row.customer_identity==1}
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">公司名称:</label>
            <div class="col-xs-12 col-sm-8">
                <input value="{$row.corporate_name|htmlentities}" id="c-corporate_name"
                       placeholder="{:__('Please enter')}公司名称" data-rule="required"
                       class="form-control"
                       name="row[corporate_name]" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">授权签约人:</label>
            <div class="col-xs-12 col-sm-8">
                <input value="{$row.signatory|htmlentities}" id="c-signatory"
                       placeholder="{:__('Please enter')}授权签约人" data-rule="required"
                       class="form-control"
                       name="row[signatory]" type="text">
            </div>
        </div>
        {/if}
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
